import request from '@/utils/request'

export function getBuildList(params) {
  return request({
    url: '/park/building',
    params
  })
}
// 增加
export function addBuilding(data) {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}
// 编辑
export function upaateBuilding(data) {
  return request({
    url: `/park/building`,
    method: 'PUT',
    data
  })
}
// 删除
export function delBuilding(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}
